package com.zy.cat.entity.dev.resp;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @info 5088邀请提现信息
 * @author Link
 * @date 2019-11-26 14:44
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("5088邀请提现信息")
public class CatDev5088InviteInfoResp {
	
	@JsonIgnore
	private String param;

	@ApiModelProperty(value = "成功邀请人数", example = "1")
	private long ycount;
 
	@ApiModelProperty(value = "成功邀请奖励（分）", example = "100")
	private long income;
	
	private List<InviteHistory> history;
	
	private List<InviteRemit> remitInfo;

	
	@Data
	@NoArgsConstructor
	@AllArgsConstructor
	@ApiModel("5088邀请提现红包信息")
	public static class InviteRemit {
		
		@ApiModelProperty(value = "0.每日限量、1.仅限一次", example = "1")
		private int rtype;
		
		@ApiModelProperty(value = "红包金额（分）", example = "100")
		private long income;
		
		@ApiModelProperty(value = "剩余待领取数量", example = "1")
		private int lcount;

	}
	
	@Data
	@NoArgsConstructor
	@AllArgsConstructor
	@ApiModel("5088邀请进度信息")
	public static class InviteHistory {
		
		@ApiModelProperty(value = "被邀请人名称")
		private String yname;
		
		@ApiModelProperty(value = "被邀请人头像")
		private String yicon;
		
		@ApiModelProperty(value = "被邀请序列", example = "1")
		private int iindex;
	 
		@ApiModelProperty(value = "邀请奖励（分）", example = "100")
		private long income;
		
		@ApiModelProperty(value = "邀请进度（0.已注册、1.已下单、2.已到账）", example = "1")
		private int istatus;

	}

	public CatDev5088InviteInfoResp(long ycount, long income, List<InviteHistory> history,
			List<InviteRemit> remitInfo) {
		super();
		this.ycount = ycount;
		this.income = income;
		this.history = history;
		this.remitInfo = remitInfo;
	}

	public CatDev5088InviteInfoResp(String pid) {
		super();
		this.param = pid;
	}
	
}
